package com.tech.platform.cms.cacheUtils.redis.processor;

/**
 * Created by Administrator on 2019/11/28.
 */
public abstract class RedisDsProcessor {

    private RedisDsProcessor nextProcessor;

    public void setNextProcessor(RedisDsProcessor dsProcessor) {
        this.nextProcessor = dsProcessor;
    }

    /**
     * 抽象匹配条件 匹配才会走当前执行器否则走下一级执行器
     *
     * @param key DS注解里的内容
     * @return 是否匹配
     */
    public abstract boolean matches(String key);

}
